import { EditColumns } from "@/api/interface/EditColumns";
import { SysRole } from "./data";
import { formInputEvents } from "@/components/FormCreate/interface/input";
import { formFieldRule } from "@/components/FormCreate/interface/fieldRule";
import fields = SysRole.Fields;
import { InputProps } from "element-plus";

//获取[创建表单]的formRules
//fapi文档：http://www.form-create.com/v3/instance.html
export const GetCreateFormRule = (colsData: EditColumns): EditColumns => {
  //重写dic_value字段的rule
  // let dicValueNewRule: formFieldRule = {
  //   props: {
  //     placeholder: "sasasas"
  //   } as InputProps
  // };
  // colsData.resetFormRule(fields.id, dicValueNewRule);

  return JSON.parse(JSON.stringify(colsData));
};
